# -*- coding: utf-8 -*-
import sys  
reload(sys)
sys.setdefaultencoding('utf8')  
import string
import cgi

from google.appengine.api import urlfetch
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app


url01 = u"http://ggfw.tk"
url02 = u"http://eehu.tk"
url03 = u"http://gango.tk"
url04 = u"http://guid.tk"
url05 = u"http://heju.tk"
url06 = u"http://juhe.tk"
url07 = u"http://samue.tk"
url08 = u"http://twithere.tk"
url09 = u"http://twitmsg.tk"
url10 = u"http://yamiede.tk"
url11 = u"http://yeehu.tk"
url12 = u"http://backoff.tk"
url13 = u"http://efttt.tk"
url14 = u"http://peta.tk"
url15 = u"http://qcomm.tk"
url16 = u"http://samue.tk"
url17 = u"http://sheldon.tk"

class DomainAccess(webapp.RequestHandler):
	def get(self):
		urlfetch.fetch(url=url01, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		urlfetch.fetch(url=url02, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		urlfetch.fetch(url=url03, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		urlfetch.fetch(url=url04, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		urlfetch.fetch(url=url05, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		urlfetch.fetch(url=url06, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		urlfetch.fetch(url=url07, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		urlfetch.fetch(url=url08, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		result = urlfetch.fetch(url=url09, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		urlfetch.fetch(url=url10, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		urlfetch.fetch(url=url11, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		urlfetch.fetch(url=url12, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		urlfetch.fetch(url=url13, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		urlfetch.fetch(url=url14, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		urlfetch.fetch(url=url15, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		urlfetch.fetch(url=url16, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		urlfetch.fetch(url=url17, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		#urlfetch.fetch(url=url18, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		#urlfetch.fetch(url=url19, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		#urlfetch.fetch(url=url20, payload=[], method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_truncated=True, deadline=30)
		self.response.out.write(result.content.decode('utf-8'))

application = webapp.WSGIApplication(
																		 [('/domain', DomainAccess)],
																		 debug=True)

def main():
	run_wsgi_app(application)

if __name__ == "__main__":
	main()